
<script>
  export default {
    render: h => h(),
    beforeCreate() {
      console.log(this.$route)
      const nextPath = this.$route.query.nextPath
      this.$router.replace({ path: nextPath })
      console.log("调用")
      console.log(nextPath)
    },
  }
  // 菜单组件切换路由后先集中跳转的redirect页面中转
  // reloadRouter(path) {
  //   this.$router.replace({
  //     path: "/redirect",
  //     query: {
  //       nextPath: path
  //     }
  //   });
  // }
</script>

